package org.luckyjourney.entity.agent;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * 咨询师表
 * @TableName user
 */
@TableName(value ="user")
public class Couselor implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 姓名
     */
    private String nickName;

    /**
     * 密码
     */
    private String password;

    /**
     * 个人简介
     */
    private String description;

    /**
     * 性别
     */
    private Integer sex;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 收藏夹id
     */
    private Long defaultFavoritesId;

    /**
     * 软删除
     */
    private Integer isDeleted;

    /**
     * 创建时间
     */
    private Date gmtCreated;

    /**
     * 修改时间
     */
    private Date gmtUpdated;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 证书
     */
    private String certificate;

    /**
     * 认证状态（0未认证1已认证）
     */
    private Integer authenticationStatus;

//    *
//     * 身份证正面
//    private String front;
//
//    /**
//     * 身份证反面
//     */
//    private String reverseSide;

    /**
     *
     */
    private String cover;

    /**
     *
     */
    private Long moduleId;

    /**
     * 是否认证0未认证   1已认证
     */
    private Integer isApprove;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    public Long getId() {
        return id;
    }

    /**
     *
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 姓名
     */
    public String getNickName() {
        return nickName;
    }

    /**
     * 姓名
     */
    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    /**
     * 密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * 密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 个人简介
     */
    public String getDescription() {
        return description;
    }

    /**
     * 个人简介
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * 性别
     */
    public Integer getSex() {
        return sex;
    }

    /**
     * 性别
     */
    public void setSex(Integer sex) {
        this.sex = sex;
    }

    /**
     * 头像
     */
    public String getAvatar() {
        return avatar;
    }

    /**
     * 头像
     */
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    /**
     * 收藏夹id
     */
    public Long getDefaultFavoritesId() {
        return defaultFavoritesId;
    }

    /**
     * 收藏夹id
     */
    public void setDefaultFavoritesId(Long defaultFavoritesId) {
        this.defaultFavoritesId = defaultFavoritesId;
    }

    /**
     * 软删除
     */
    public Integer getIsDeleted() {
        return isDeleted;
    }

    /**
     * 软删除
     */
    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    /**
     * 创建时间
     */
    public Date getGmtCreated() {
        return gmtCreated;
    }

    /**
     * 创建时间
     */
    public void setGmtCreated(Date gmtCreated) {
        this.gmtCreated = gmtCreated;
    }

    /**
     * 修改时间
     */
    public Date getGmtUpdated() {
        return gmtUpdated;
    }

    /**
     * 修改时间
     */
    public void setGmtUpdated(Date gmtUpdated) {
        this.gmtUpdated = gmtUpdated;
    }

    /**
     * 手机号
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 手机号
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 证书
     */
    public String getCertificate() {
        return certificate;
    }

    /**
     * 证书
     */
    public void setCertificate(String certificate) {
        this.certificate = certificate;
    }

    /**
     * 认证状态（0未认证1已认证）
     */
    public Integer getAuthenticationStatus() {
        return authenticationStatus;
    }

    /**
     * 认证状态（0未认证1已认证）
     */
    public void setAuthenticationStatus(Integer authenticationStatus) {
        this.authenticationStatus = authenticationStatus;
    }
//
//    /**
//     * 身份证正面
//     */
//    public String getFront() {
//        return front;
//    }
//
//    /**
//     * 身份证正面
//     */
//    public void setFront(String front) {
//        this.front = front;
//    }

    /**
     * 身份证反面
     */
//    public String getReverseSide() {
//        return reverseSide;
//    }

    /**
     * 身份证反面
     */
//    public void setReverseSide(String reverseSide) {
//        this.reverseSide = reverseSide;
//    }

    /**
     *
     */
    public String getCover() {
        return cover;
    }

    /**
     *
     */
    public void setCover(String cover) {
        this.cover = cover;
    }

    /**
     *
     */
    public Long getModuleId() {
        return moduleId;
    }

    /**
     *
     */
    public void setModuleId(Long moduleId) {
        this.moduleId = moduleId;
    }

    /**
     * 是否认证0未认证   1已认证
     */
    public Integer getIsApprove() {
        return isApprove;
    }

    /**
     * 是否认证0未认证   1已认证
     */
    public void setIsApprove(Integer isApprove) {
        this.isApprove = isApprove;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Couselor other = (Couselor) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
                && (this.getNickName() == null ? other.getNickName() == null : this.getNickName().equals(other.getNickName()))
                && (this.getPassword() == null ? other.getPassword() == null : this.getPassword().equals(other.getPassword()))
                && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()))
                && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
                && (this.getAvatar() == null ? other.getAvatar() == null : this.getAvatar().equals(other.getAvatar()))
                && (this.getDefaultFavoritesId() == null ? other.getDefaultFavoritesId() == null : this.getDefaultFavoritesId().equals(other.getDefaultFavoritesId()))
                && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
                && (this.getGmtCreated() == null ? other.getGmtCreated() == null : this.getGmtCreated().equals(other.getGmtCreated()))
                && (this.getGmtUpdated() == null ? other.getGmtUpdated() == null : this.getGmtUpdated().equals(other.getGmtUpdated()))
                && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()))
                && (this.getCertificate() == null ? other.getCertificate() == null : this.getCertificate().equals(other.getCertificate()))
                && (this.getAuthenticationStatus() == null ? other.getAuthenticationStatus() == null : this.getAuthenticationStatus().equals(other.getAuthenticationStatus()))
//                && (this.getFront() == null ? other.getFront() == null : this.getFront().equals(other.get/Front()))
//                && (this.getReverseSide() == null ? other.getReverseSide() == null : this.getReverseSide().equals(other.getReverseSide()))
                && (this.getCover() == null ? other.getCover() == null : this.getCover().equals(other.getCover()))
                && (this.getModuleId() == null ? other.getModuleId() == null : this.getModuleId().equals(other.getModuleId()))
                && (this.getIsApprove() == null ? other.getIsApprove() == null : this.getIsApprove().equals(other.getIsApprove()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getNickName() == null) ? 0 : getNickName().hashCode());
        result = prime * result + ((getPassword() == null) ? 0 : getPassword().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getAvatar() == null) ? 0 : getAvatar().hashCode());
        result = prime * result + ((getDefaultFavoritesId() == null) ? 0 : getDefaultFavoritesId().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        result = prime * result + ((getGmtCreated() == null) ? 0 : getGmtCreated().hashCode());
        result = prime * result + ((getGmtUpdated() == null) ? 0 : getGmtUpdated().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        result = prime * result + ((getCertificate() == null) ? 0 : getCertificate().hashCode());
        result = prime * result + ((getAuthenticationStatus() == null) ? 0 : getAuthenticationStatus().hashCode());
//        result = prime * result + ((getFront() == null) ? 0 : getFront().hashCode());
//        result = prime * result + ((getReverseSide() == null) ? 0 : getReverseSide().hashCode());
        result = prime * result + ((getCover() == null) ? 0 : getCover().hashCode());
        result = prime * result + ((getModuleId() == null) ? 0 : getModuleId().hashCode());
        result = prime * result + ((getIsApprove() == null) ? 0 : getIsApprove().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", nickName=").append(nickName);
        sb.append(", password=").append(password);
        sb.append(", description=").append(description);
        sb.append(", sex=").append(sex);
        sb.append(", avatar=").append(avatar);
        sb.append(", defaultFavoritesId=").append(defaultFavoritesId);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", gmtCreated=").append(gmtCreated);
        sb.append(", gmtUpdated=").append(gmtUpdated);
        sb.append(", phone=").append(phone);
        sb.append(", certificate=").append(certificate);
        sb.append(", authenticationStatus=").append(authenticationStatus);
//        sb.append(", front=").append(front);
//        sb.append(", reverseSide=").append(reverseSide);
        sb.append(", cover=").append(cover);
        sb.append(", moduleId=").append(moduleId);
        sb.append(", isApprove=").append(isApprove);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
